import request from '@/utils/request.js'

// 查询发送记录列表
export function listAiSendHistory(query) {
    return request({
        url: '/tool/aiSendHistory/list',
        method: 'post',
        data: query
    })
}

// 查询发送记录详细
export function getAiSendHistory(id) {
    return request({
        url: '/tool/aiSendHistory/detail/' + id,
        method: 'get'
    })
}

// 新增发送记录
export function addAiSendHistory(data) {
    return request({
        url: '/tool/aiSendHistory/save',
        method: 'post',
        data: data
    })
}

// 修改发送记录
export function updateAiSendHistory(data) {
    return request({
        url: '/tool/aiSendHistory/update',
        method: 'put',
        data: data
    })
}

// 删除发送记录
export function delAiSendHistory(id) {
    return request({
        url: '/tool/aiSendHistory/remove/' + id,
        method: 'delete'
    })
}